package com.serverplic.media;

import java.util.HashSet;
import java.util.Set;

/**
 * Represent one Point of interest.
 * @author Antoine
 *
 */
public class Point
{
	private int id;
	private String name;
	private String title;
	private String QRCode;
	private String shortDescription;
	private String description;
	private int posX;
	private int posY;
	private int pathID;
	private Set<Picture> pictureList = new HashSet<Picture>(0);
	private Set<Text> textList = new HashSet<Text>(0);
	private int eventId;
	
	public int getId()
	{
		return id;
	}
	
	public void setId(int _id)
	{
		id = _id;
	}
	
	public String getName()
	{
		return name;
	}
	
	public void setName(String _name)
	{
		name = _name;
	}
	
	public String getTitle()
	{
		return title;
	}
	
	public void setTitle(String _title)
	{
		title = _title;
	}
	
	public String getQRCode()
	{
		return QRCode;
	}
	
	public void setQRCode(String _qrcode)
	{
		QRCode = _qrcode;
	}
	
	public String getShortDescription()
	{
		return shortDescription;
	}
	
	public void setShortDescription(String _shortDescription)
	{
		shortDescription = _shortDescription;
	}
	
	public String getDescription()
	{
		return description;
	}
	
	public void setDescription(String _description)
	{
		description = _description;
	}

	public int getPosX()
	{
		return posX;
	}
	
	public void setPosX(int _posX)
	{
		posX = _posX;
	}
	
	public int getPosY()
	{
		return posY;
	}
	
	public void setPosY(int _posY)
	{
		posY = _posY;
	}
	
	public int getPathID()
	{
		return pathID;
	}
	
	public void setPathID(int _pathID)
	{
		pathID = _pathID;
	}
	
	public int getEventId()
	{
		return eventId;
	}
	
	public void setEventId(int _eventId)
	{
		eventId = _eventId;
	}
	
	public Set<Picture> getPictureList()
	{
		return pictureList;
	}

	public void setPictureList(Set<Picture> _pictureList)
	{
		pictureList = _pictureList;
	}
	
	public void addPicture(Picture _picture)
	{
		pictureList.add(_picture);
	}
	
	public Set<Text> getTextList()
	{
		return textList;
	}

	public void setTextList(Set<Text> _textList)
	{
		textList = _textList;
	}
	
	public void addText(Text _text)
	{
		textList.add(_text);
	}
	
	@Override
	public String toString()
	{
		String txt = "Point\n";
		txt += "ID : " + id + "\n";
		txt += "Name : " + name + "\n";
		txt += "Title : " + title + "\n";
		txt += "QRCode : " + QRCode + "\n";
		txt += "Position : (" + posX + "," + posY + ")\n";
		txt += "Path ID : " + pathID + "\n";
		txt += "Short Description : " + shortDescription + "\n";
		txt += "Description : " + description + "\n";
		txt += "Parent Event : " + eventId + "\n";
		txt += "Picture List : " + pictureList.toString() + "\n";
		txt += "Text List : " + textList.toString() + "\n";
		return txt;
	}
}
